#!/opt/bin/bash

file=`echo "/tmp/$1_$3.log"`
touch $file

case $2 in
"DOC") 
    ./rsyncBackupDocuments.sh $file $3
    ;;
"IMG") 
    ./rsyncBackupPhotos.sh $file $3
    ;;
* ) 
    echo "Unknown backup prefix"
    exit 1
    ;;
esac


## ########################################## ## 
echo "DONE !! "


